GET
/
v3
/
api_keys
/
send_data
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/send_data';

let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "keys": [
    {
      "name": "my_api_key",
      "owner": {
        "userId": "<string>",
        "teamId": 123,
        "organisationId": "<string>"
      },
      "active": true,
      "hashed": true,
      "keyPermissions": {
        "presets": [
          {
            "name": "my_preset",
            "permissions": [
              "read_logs"
            ]
          }
        ],
        "permissions": [
          "<string>"
        ]
      },
      "value": "<string>",
      "id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Response

200
application/json

A successful response.

This data structure is the response obtained when retrieving an API key.